package com.pro.framework.api.enums;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Schema(description = "分页模式")
@Getter
@AllArgsConstructor
public enum EnumPagingMode implements IEnumStr {
    PAGE_NUM("页码分页", "pageNum"),
    CURSOR("游标分页", "cursor"),
    FULL_LIST("无分页列表全查询", "cursor"),
    ;

    final String label;
    final String code;

    @Override
    public String getCode() {
        return code;
    }
}
